<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Feedback extends Model
{
    protected $table='feedback';
    protected $primaryKey='fid';
    protected $fillable=['uid','fbcontent','fid'];
    public $timestamps = false;

    public function rules()
    {
        return [
            'fbcontent'=>'required',
        ];
    }

    public function msg(){
        return [
            'fbcontent.required'=>'反馈不能为空',
        ];
    }
}
